package com.dms.modules.admin.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 评论规则DTO
 */
@Data
@ApiModel(value = "AdminCommentRuleDTO", description = "评论规则DTO")
public class AdminCommentRuleDTO {
    @ApiModelProperty("规则ID")
    private Long id;
    
    @ApiModelProperty(value = "规则名称", required = true)
    @NotBlank(message = "规则名称不能为空")
    private String name;
    
    @ApiModelProperty(value = "规则内容", required = true)
    @NotBlank(message = "规则内容不能为空")
    private String content;
    
    @ApiModelProperty(value = "规则类型：1-禁止发布 2-需要审核 3-自动过滤", required = true)
    @NotNull(message = "规则类型不能为空")
    private Integer type;
    
    @ApiModelProperty(value = "规则状态：0-禁用 1-启用", required = true)
    @NotNull(message = "规则状态不能为空")
    private Integer status;
    
    @ApiModelProperty("备注")
    private String remark;
} 